{% extends '后台/layout.html' %}


{% load static %}

{% block title %}
开奖页面
{% endblock %}

{% block css %}

{% endblock %}

{% block content %}
<a href="/data/open/add/"  class="btn btn-outline-primary" style="margin:20px 0;" >新增一期</a>
<div class="card">
    
    <div class="card-body">
        <h5 class="card-title" style="border-bottom: 1px solid rgba(0,0,0,.3);padding-bottom:10px;font-size:18px;
        display: flex;justify-content: space-between;
        ">
            <span>生肖后台</span>
        </h5>
        <div class="bd-example">
            
                
            <table class="table table-bordered">
                <thead>
                    <tr>
                        <th scope="col">ID</th>
                        <th scope="col">开奖结果</th>
                        <th scope="col">开奖时间</th>
                        <th scope="col">赌期</th>
                        <th scope="col">操作</th>
                    </tr>
                </thead>
                <tbody>
                    {% for obj in open_all %}
                    <tr>
                        <th scope="row">{{obj.id}}</th>
                        <td>{{obj.open_shengxiao}}</td>
                        <td>{{obj.open_time | date:"Y-m-d"}}</td>
                        <td>{{obj.current_phase}}</td>
                        <td>
                            <a href="/data/open/{{obj.current_phase}}/edit/" class="btn btn-primary btn-sm">编辑</a>
                        </td>
                    </tr>
                    {% endfor %}
                </tbody>

            </table>
        </div>

    </div>
</div>


{% endblock %}

{% block js %}

{% endblock %}